
from optparse import OptionParser
import sys
import re
import json

parser = OptionParser()
(opts,args) = parser.parse_args()

for l in sys.stdin:
    m = re.match(r"s08dz published: (?P<dic>{.*})", l)
    if(m):
       # print(m.group('dic'))
        #d = json.loads(m.group('dic'))
        s = re.sub(r'[Lu\\x]','',m.group('dic'))
        s = re.sub(r'"05\'','',s)
        s = re.sub(r'\'05"','',s)
        d = eval(s)
        if(d['fields']['Battery Instance'][0] == 2):
            print(d['fields']['Crrent'][0])
